﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Aij1.Model;
using DevExpress.Web.ASPxTreeList;
using Aij1.BLL;
using Aij1.Utils;

namespace Aij1.Cms
{
    public partial class CategoryMan : AdminPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
        }

        protected void Page_Init(object sender, EventArgs e)
        {
            XpoDataSource1.Session = XpoSession;

            TreeListComboBoxColumn col = ASPxTreeList1.Columns["colAType"] as TreeListComboBoxColumn;
            col.PropertiesComboBox.DataSource = CategoryData.GetTypes<ArticleType>();
        }
    }
}